﻿<?php
if(!isset($intEspecId)) {
	$objCategory = new Category();
	$arrSpec	 = $objCategory->getTag(EDUCATION_SPEC_TYPE, HOMEPAGE_ADV, $variable['EDUCATE_SPEC_LIMIT']['val']);	
	$intEspecId	 = isset($arrSpec[0]['categoryid']) ? $arrSpec[0]['categoryid'] : 0;
	$this->view->specialized = $arrSpec;
}
$objEducation	= new Education();
$intEspecLimit	= $variable['EDUCATE_TOP_LIMIT']['val'];
$arrEspec		= $objEducation->getAll(0, $intEspecId, 0, 0, $intEspecLimit);
$this->view->education	= $arrEspec;